using System;
using System.Collections.Generic;
using System.ServiceModel;
using WcfService1.DTO;

namespace WcfService1
{
    // NOTE: You can use the "Rename" command on the "Refactor" Spk to change the interface name "ISpkServices" in both code and config file together.
    [ServiceContract]
    public interface ISpkServices
    {
        [OperationContract]
        List<SpkDTO> GetList(int page, out long recordCount, string sortProperty = null, string sortType = "ASC");

        [OperationContract]
        bool Save(SpkDTO Spk);

        [OperationContract]
        bool Delete(SpkDTO Spk);

        [OperationContract]
        List<SpkDTO> GetListByCriteria(Dictionary<String, Object> criteria, string expression, int page,
                                       out long recordCount);

        [OperationContract]
        List<SpkDTO> GetAllSpk();

        [OperationContract]
        SpkDTO GetSpk(string kodeSpk);

        [OperationContract]
        List<SpkDTO> GetSpkList(string kodeSpk);

        [OperationContract]
        bool DeleteDetail(SpkDetailDTO SpkDetail);

        [OperationContract]
        string GetLastNoSPK();

        [OperationContract]
        bool SendEmail(SpkDTO spkDto, String DestinationFolder);
    }
}